<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'repairs.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	<link rel="stylesheet" type="text/css" href="style/inf.css">

<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/inf.js"></script>

  </head>
  
  <body
	onload="loadDormNameYear();" style="background-color: transparent;">
	<h1>维修查询：</h1>
	楼号：
	<select id="dormBdName" size="1" name="dormName"
		onchange="loadDormNu('#dormNu', '#dormBdName', true);">
	</select> 宿舍号：
	<select id="dormNu" size="1" name="dormNu">
	</select> 年份：
	<select id="year" size="1" name="year">
	</select>

	
	<input type="button" value="查询" onclick="loadRepairs(1);"></input>

    <input type="button" value="学生报修处理" onclick="loadStuReDispose(1);" ></input>
    
	<input id="add-Bt" type="button" value="新增" onclick="addRepairsInf();"/>

	<table id="infTable" border="1" bordercolor="#000000">
		<tr id="ttitle">
			<th scope="col">楼号</th>
			<th scope="col">宿舍号</th>
			<th scope="col">学号</th>
			<th scope="col">物品编号</th>
			<th scope="col">原因</th>
			<th scope="col">提交日期</th>
			<th scope="col">维修费用</th>
			<th scope="col">是否已维修</th>
		    <th scope="col">操作</th>
			<!-- 11.22 新增 -->
		</tr>
	</table>
	
	<!-- 翻页控件  -->
	<div id="changePage">
		<a href="javascript:void(0)" class="previous">上一页</a> <select
			id="page_select"></select> <a href="javascript:void(0)" class="next">下一页</a>
	</div>
	<div id="blackBackground"></div>
	
	
	<!-- 新增和修改水电费对话框  -->
	<div id="newRepairs_div" class="addDialog">
	<input type="hidden"  id="uid"  ><!-- 用来存放修改水电费记录的ID -->
		<div id="repairsInf_l">
			<p>
				楼号：<select id="dormName_add" onchange='loadDormNu("#dormNu_add", "#dormName_add");'></select>
				宿舍号：<select id="dormNu_add" ></select>
			</p>
			<p>
				学号：<input type="text" id="studentNu" />
			</p>
			<p>
				物品编号： <input type="text" id="goodsNu" />
			</p>

		</div>
		<div id="repairsInf_r">
			
			<p>
				原因：<input type="text" id="reasonOfRe" />
			</p>
			<p>
				维修费用：<input type="text" id="repairsCost" />
			</p>
		</div>
		<div>
	
			<input type="button" id="close" value="关闭" onclick="hideAddRepairsInf();"/>
 		    </div>
 		    
	    		<input type="button" id="edit_save" class="save" value="保存" onclick="editRepairs()"/>
		        <input type="button" id="add_save" class="save" value="保存" onclick="addRepairs()"/> 
                <input type="button" id="editDispose_save" class="save" value="保存" onclick="editStuReDispose()"/>
	</div>
</body>
</html>
